import request from './request' // 你项目中封装的 axios 实例

export const getPlatform = () => {
  return request.get('/platforms')
}

export const createPlatform = (data) => {
  return request.post('/platforms', data)
}

export const updatePlatForm = (data) => {
  return request.put(`/platforms/${data.id}`, data)
}

export const deletePlatFormById = (id) => {
  return request.delete(`/platforms/${id}`)
}
